package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDate;

public class Doctor {
    private String doc_id;
    private String doc_name;
    private String sex;
    private String nation;
    private Integer work_year;
    private String politicstatus;
    private String doc_title;
    private String education;
    private String introduction;
    private String telephone;
    private Integer depart_id1;
    private Integer depart_id2;
    private LocalDate birthdate; // 修改为LocalDate类型
    private String user_name;
    private String img;
    private Integer recommend;
    private String user_id;

    // Getters and Setters
    public String getDocId() { return doc_id; }
    public void setDocId(String doc_id) { this.doc_id = doc_id; }

    public String getDocName() { return doc_name; }
    public void setDocName(String doc_name) { this.doc_name = doc_name; }

    public String getSex() { return sex; }
    public void setSex(String sex) { this.sex = sex; }

    public String getNation() { return nation; }
    public void setNation(String nation) { this.nation = nation; }

    public Integer getWorkYear() { return work_year; }
    public void setWorkYear(Integer work_year) { this.work_year = work_year; }

    public String getPoliticstatus() { return politicstatus; }
    public void setPoliticstatus(String politicstatus) { this.politicstatus = politicstatus; }

    public String getDocTitle() { return doc_title; }
    public void setDocTitle(String doc_title) { this.doc_title = doc_title; }

    public String getEducation() { return education; }
    public void setEducation(String education) { this.education = education; }

    public String getIntroduction() { return introduction; }
    public void setIntroduction(String introduction) { this.introduction = introduction; }

    public String getTelephone() { return telephone; }
    public void setTelephone(String telephone) { this.telephone = telephone; }

    public Integer getDepartId1() { return depart_id1; }
    public void setDepartId1(Integer depart_id1) { this.depart_id1 = depart_id1; }

    public Integer getDepartId2() { return depart_id2; }
    public void setDepartId2(Integer depart_id2) { this.depart_id2 = depart_id2; }

    // 格式化日期输出
    @JsonFormat(pattern = "yyyy-MM-dd")
    public LocalDate getBirthdate() { return birthdate; }

    public void setBirthdate(LocalDate birthdate) { this.birthdate = birthdate; }

    public String getUserName() { return user_name; }
    public void setUserName(String user_name) { this.user_name = user_name; }

    public String getImg() { return img; }
    public void setImg(String img) { this.img = img; }

    public Integer getRecommend() { return recommend; }
    public void setRecommend(Integer recommend) { this.recommend = recommend; }

    public String getUserId() { return user_id; }
    public void setUserId(String user_id) { this.user_id = user_id; }
}